From bef18b1ec2cc15a84a5c592f0e1e649bd6f826ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Mon, 2 May 2005 10:19:18 +0000 Subject: [PATCH] * Adding a test for handling of sections up to level 6 and beyond. --- maintenance/parserTests.txt | 59 +++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index d7b4f99a33..d01e9ba07d 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -1882,6 +1882,65 @@ Some text !! end +# perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10' +!! test +Handling of sections up to level 6 and beyond +!! input += Level 1 Heading= +== Level 2 Heading== +=== Level 3 Heading=== +==== Level 4 Heading==== +===== Level 5 Heading===== +====== Level 6 Heading====== +======= Level 7 Heading======= +======== Level 8 Heading======== +========= Level 9 Heading========= +========== Level 10 Heading========== +!! result +

Table of contents

+ +
+

+

+
[edit]

Level 1 Heading

+
[edit]

Level 2 Heading

+
[edit]

Level 3 Heading

+
[edit]

Level 4 Heading

+
[edit]
Level 5 Heading
+
[edit]
Level 6 Heading
+
[edit]
= Level 7 Heading=
+
[edit]
== Level 8 Heading==
+
[edit]
=== Level 9 Heading===
+
[edit]
==== Level 10 Heading====
+ +!! end + !! test Resolving duplicate section names !! options -- 2.20.1